
class Student:
    name=None
    age=None
    tel=None

    def __init__(self,name,age,tel):
        self.name=name
        self.age=age
        self.tel=tel
        print("类里面的函数会自动执行")

stu=Student("吴彦祖",29,18325710901)

print(stu.name)
print(stu.age)
print(stu.tel)

class Teacher:

    def __init__(self,name,age,tel):
        self.name=name
        self.age=age
        self.tel=tel
        print("类里面的函数会自动执行,teacher")

stu1=Teacher("吴彦祖",29,18325710901)

print(stu1.name)
print(stu1.age)
print(stu1.tel)